import { stringify } from 'qs';
import { request,  }  from '../utils/request';
import { getConfig } from '../../config';
const config = getConfig();


// 获取部门列表
export async function queryAllDepartment(params) {
  return request('/sys/sysdept/queryDeptByName', {
    method: 'POST',
    body: params,
  });
}

// 部门新增
export async function saveDepartmentAdd(params) {
  return request('/sys/sysdept/save', {
    method: 'POST',
    body: params,
  });
}

// 部门修改
export async function saveDepartmentEdit(params) {
  return request('/sys/sysdept/update', {
    method: 'POST',
    body: params,
  });
}

// 部门删除
export async function saveDepartmentDel(params) {
  return request('/sys/sysdept/delete', {
    method: 'POST',
    body: params,
  });
}
